import { reactive } from "vue";
import { defineStore } from 'pinia';

export const useUploadFileStore = defineStore('uploadfile', {
    state: () => ({
        hasNotUploadFile: false,
        uploadedFileList: reactive([]), // 上传成功的文件的列表
        delHisUploadFile:reactive([]),//删除的历史文件
    }),
    actions: {
        init() {
            this.hasNotUploadFile = false;
            this.uploadedFileList = reactive([]);
            this.delHisUploadFile =reactive([]);
        }
    },
});